return meta_display_get_grab_op (display) != META_GRAB_OP_NONE;
}
-/* Defining this here for now, see
- * https://bugzilla.gnome.org/show_bug.cgi?id=604075
- * for upstreaming status.
- */
-JSContext * gjs_context_get_context (GjsContext *context);
-
/**
* shell_global_add_extension_importer:
* @target_object_script: JavaScript code evaluating to a target object
{
jsval target_object;
JSObject *importer;
- JSContext *context = gjs_context_get_context (global->js_context);
+ JSContext *context = gjs_context_get_native_context (global->js_context);
char *search_path[2] = { 0, 0 };
// This is a bit of a hack; ideally we'd be able to pass our target
void
shell_global_gc (ShellGlobal *global)
{
- JSContext *context = gjs_context_get_context (global->js_context);
+ JSContext *context = gjs_context_get_native_context (global->js_context);
JS_GC (context);
}